package cn.ichiva.puppet.example.curd;

import javafx.application.Application;
import javafx.fxml.PuppetComponentLoader;
import javafx.scene.Scene;
import javafx.stage.Stage;
import org.kordamp.bootstrapfx.BootstrapFX;

public class Main extends Application {

    @Override
    public void start(Stage stage) throws Exception {
        DepartmentManager component = new DepartmentManager();
        Scene scene = PuppetComponentLoader.loadScene(component,1000,600);
        scene.getStylesheets().addAll(BootstrapFX.bootstrapFXStylesheet());

        stage.setScene(scene);
        stage.setTitle("部门管理");
        stage.show();
    }
}